package cn.scau.server.service;

import cn.scau.server.dto.ApplicationRecordsDTO;
import cn.scau.server.dto.SearchRecordsDTO;
import cn.scau.server.pojo.ApplicationRecords;
import cn.scau.server.vo.ResultVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.text.ParseException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 代码不跑我先跑
 * @since 2025-03-30
 */
public interface ApplicationRecordsService extends IService<ApplicationRecords> {

    ResultVO addRecord(ApplicationRecordsDTO applicationRecordsDTO);

    ResultVO getPersonalRecords(SearchRecordsDTO searchRecordsDTO);

    ResultVO getLeaderApprovalList(SearchRecordsDTO searchRecordsDTO);

    ResultVO revokeApplication(Integer recordId);

    ResultVO approval(Integer recordId, Integer deptId, String empId, Boolean pass) throws ParseException;

    ResultVO getPersonalSingleRecords(Integer recordId, String empId);
}
